package cn.stylefeng.guns.modular.rw.service.impl;

import cn.stylefeng.guns.base.pojo.page.LayuiPageFactory;
import cn.stylefeng.guns.modular.rw.entity.MerToJoin;
import cn.stylefeng.guns.modular.rw.mapper.MerToJoinMapper;
import cn.stylefeng.guns.modular.rw.service.IMerToJoinService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * 描述：招商加盟表 service业务层
 * 作者：chenhuiyan
 * 时间：2020-05-07
 */
@Service
@Transactional(readOnly = true)
public class MerToJoinServiceImpl extends ServiceImpl<MerToJoinMapper, MerToJoin> implements IMerToJoinService {

    /**
     * 查询列表
     * @param params
     * @return
     */
    public Page<Map<String, Object>> list(Map<String, Object> params) {
        Page page = LayuiPageFactory.defaultPage();
        return this.baseMapper.list(page, params);
    }

    /**
     * 查询详情
     * @param merToJoinId
     * @return
     */
    public Map<String, Object> getInfoById(String merToJoinId){
        return this.baseMapper.getInfoById(merToJoinId);
    }
}
